class fragments::java(
      String $jdk_install_dir,
      String $maven_install_dir
) {
  file { '/etc/profile.d/java.sh':
       ensure => present,
       owner => 'root',
       content => template('fragments/java.sh.erb'),
  }
}